package com.qc.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.qc.dao.BusinessFollowDao;
import com.qc.entity.BusinessFollow;
import com.qc.service.BusinessFollowService;

@Service("businessFollowService")
public class BusinessFollowServiceImpl implements BusinessFollowService{

	@Resource(name="businessFollowDao")
	private BusinessFollowDao businessFollowDao;
	
	@Override
	public int saveBusinessFollow(BusinessFollow businessFollow) {

		return businessFollowDao.saveBusinessFollow(businessFollow);
	}

	@Override
	public void deleteBusinessFollow(long shopId,long userId) {

		businessFollowDao.deleteBusinessFollow(shopId, userId);
	}

	@Override
	public int getUserFollowId(long userId, long shopId) {

		return businessFollowDao.getUserFollowId(userId, shopId);
	}

	@Override
	public List<BusinessFollow> listAllBusinessFollow(long userId, int pageNo, int pageSize) {

		return businessFollowDao.listAllBusinessFollow(userId, pageNo, pageSize);
	}

}
